package com.itheima.pojo;

import java.io.Serializable;

/*
类简介：

功能：

时间：2020/4/17

*/
public class Food implements Serializable {

    private Integer id;//主键
    private String name;//食谱名字
    private String foodTip;//食谱说明
    private String foodUnit;//摄入量
    private String age;//适用年龄

    public Food() {
    }

    public Food(Integer id, String name, String foodTip, String foodUnit, String age) {
        this.id = id;
        this.name = name;
        this.foodTip = foodTip;
        this.foodUnit = foodUnit;
        this.age = age;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFoodTip() {
        return foodTip;
    }

    public void setFoodTip(String foodTip) {
        this.foodTip = foodTip;
    }

    public String getFoodUnit() {
        return foodUnit;
    }

    public void setFoodUnit(String foodUnit) {
        this.foodUnit = foodUnit;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Food{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", foodTip='" + foodTip + '\'' +
                ", foodUnit='" + foodUnit + '\'' +
                ", age='" + age + '\'' +
                '}';
    }
}
